import _ from "lodash";

const {
    join
} = _;

function component() {
    let element = document.createElement("div");

    // lodash（目前通过一个 script 引入）对于执行这一行是必需的
    element.innerHTML = join(["Hello", "webpack"], " ");

    return element;
}

document.body.appendChild(component());